package cn.sfrog;

import cn.sfrog.common.oss.OssAutoConfiguration;
import com.alibaba.fastjson.parser.ParserConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * 启动程序
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@Import(OssAutoConfiguration.class)
public class AppStarter {

    public static void main(String[] args) {
        ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(AppStarter.class, args);
        System.out.println("项目启动成功");
    }
}
